<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
pageContext.setAttribute("basePath",basePath);
%>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="UTF-8">
		<title>登录</title>
		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap-responsive.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/basic.css">
		<link rel="stylesheet" type="text/css" href="${basePath}resources/css/login.css">

		<script type="text/javascript" src="${basePath}resources/js/common/base.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/common/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="${basePath}resources/angular-1.3.0/angular.min.js"></script>
		<script type="text/javascript" src="${basePath}resources/js/forget_password.js"></script>

	</head>
	<body ng-app="myApp" ng-controller="forgetPasswordController">
		<div id="header">
			<%@ include file="common/header.jsp" %>
			<h1>找回密码</h1>
		</div>
		<div id="container">
			<form onsubmit="return false;" method="post" name="forgetPasswordForm">
				<div>
					<input type="email" name="email" ng-model="email" placeholder="输入注册时的邮箱" required />
					<button type="button" ng-click="sendMailCode()" class="btn btn-primary">发送邮箱验证码</button>
				</div>
				<div>
					<input type="text" name="code" ng-model="code" placeholder="邮件验证码" required />
				</div>
				<div>
					<input type="password" name="pwd" ng-model="pwd" placeholder="新密码" required />
				</div>
				<div>
					<input type="password" name="confirmPwd" ng-model="confirmPwd" placeholder="再次输入新密码" required />
				</div>
				<div>
					<input type="submit" class="btn btn-primary" name="reGetPwd" id="reGetPwd" value="确认找回" ng-click="reGetPwdFunc()" ng-disabled="forgetPasswordForm.$invalid"/>
				</div>
			</form>

		</div>
		<div id="footer">
			<%@ include file="common/footer.jsp" %>
		</div>
	</body>
</html>